package lesson1.com.transportation;

public class Airplane extends Vehicle implements Flyer{
    public Airplane(){
        super(Vehicle.AIR);
        //System.out.println("A airplane is born");
    }
    
    @Override
    public String getDetails(){
        return super.getDetails() + " and I'm a airplane.";
    }
    
    @Override
    public void takeOff(){
        System.out.println("increase speed, adjust flaps, hold breath");
    }
    
    @Override
    public void fly(){
        System.out.println("keep engines going.");
    }

    @Override
    public void land() {
        System.out.println("Lower landing gear");
    }
}